<html>


<body>
{foreach $arr as $k => $v}
<table>

<tr>
    <td>{$v.id}</td>
    <td>{$v.name}</td>
</tr>
</table>
{/foreach}
<br>
{$name}
hello
</body>
</html>